<?php /* Smarty version 2.6.20, created on 2009-12-01 23:40:18
         compiled from ../public.html */ ?>
<div id="wrap" >
<div id="blue_banner"></div>
<div id="space_page">
<div id="ubar" >
<div id="space_avatar" >
<?php if ($this->_tpl_vars['space_array']['picture'] == ''): ?>
	<img src="<?php echo $this->_tpl_vars['site_url']; ?>
/app/space/templates/images/untitled_big.bmp" alt="<?php echo $this->_tpl_vars['space_array']['username']; ?>
" />
<?php else: ?>
	<img src="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['space_array']['picture']; ?>
" alt="<?php echo $this->_tpl_vars['space_array']['username']; ?>
" width="200" height="200" />
<?php endif; ?>
</div>
<div id="space_avatar"><?php echo $this->_tpl_vars['space_array']['spacename']; ?>
</div>
<ul class="line_list">
<?php if ($this->_tpl_vars['s_login_id'] == $this->_tpl_vars['space_array']['uid']): ?>
<li><img src="<?php echo $this->_tpl_vars['template_dir']; ?>
/home/images/profile.gif" align="absmiddle"><a href="member.php?action=profile" title="<?php echo $this->_tpl_vars['langSpaceEditSpace']; ?>
"><?php echo $this->_tpl_vars['langSpaceEditSpace']; ?>
</a></li>
<?php endif; ?>
<?php if ($this->_tpl_vars['s_login_id'] != '' && $this->_tpl_vars['s_login_id'] != $this->_tpl_vars['space_array']['uid']): ?>
	<?php if ($this->_tpl_vars['is_friend'] == '1'): ?>
		<li><img src="<?php echo $this->_tpl_vars['template_dir']; ?>
/home/images/friend_add.gif" align="absmiddle"><a href="javascript:;" onclick="if ( confirm( '<?php echo $this->_tpl_vars['langSpaceAffirmDeleteFriend']; ?>
' ) ) window.location.href='member.php?action=friend_del&id=<?php echo $this->_tpl_vars['friend_id']; ?>
'"><?php echo $this->_tpl_vars['langSpaceDeleteFriend']; ?>
</a></li>
	<?php else: ?>
		<li><img src="<?php echo $this->_tpl_vars['template_dir']; ?>
/home/images/friend_add.gif" align="absmiddle"><a href="member.php?action=friend_save_add&txtUsername=<?php echo $this->_tpl_vars['space_array']['username']; ?>
" title="<?php echo $this->_tpl_vars['langSpaceIndexFriend1']; ?>
 <?php echo $this->_tpl_vars['space_array']['username']; ?>
 <?php echo $this->_tpl_vars['langSpaceIndexFriend2']; ?>
"><?php echo $this->_tpl_vars['langSpaceIndexFriend1']; ?>
 <?php echo $this->_tpl_vars['space_array']['username']; ?>
 <?php echo $this->_tpl_vars['langSpaceIndexFriend2']; ?>
</a></li>
	<?php endif; ?>
<?php endif; ?>
</ul>
<h2 style="margin-top:5px;"><?php echo $this->_tpl_vars['langSpaceVisitor']; ?>
</h2>
<div class="mb10">
			<div class="p10"></div>
				<?php if (! $this->_tpl_vars['visitor_array']): ?>
					<div id="novisitorlistdiv" class="c9">
					<?php echo $this->_tpl_vars['langSpaceVisitorNone']; ?>

					</div>
				<?php else: ?>
					<?php unset($this->_sections['v']);
$this->_sections['v']['name'] = 'v';
$this->_sections['v']['loop'] = is_array($_loop=$this->_tpl_vars['visitor_array']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['v']['show'] = true;
$this->_sections['v']['max'] = $this->_sections['v']['loop'];
$this->_sections['v']['step'] = 1;
$this->_sections['v']['start'] = $this->_sections['v']['step'] > 0 ? 0 : $this->_sections['v']['loop']-1;
if ($this->_sections['v']['show']) {
    $this->_sections['v']['total'] = $this->_sections['v']['loop'];
    if ($this->_sections['v']['total'] == 0)
        $this->_sections['v']['show'] = false;
} else
    $this->_sections['v']['total'] = 0;
if ($this->_sections['v']['show']):

            for ($this->_sections['v']['index'] = $this->_sections['v']['start'], $this->_sections['v']['iteration'] = 1;
                 $this->_sections['v']['iteration'] <= $this->_sections['v']['total'];
                 $this->_sections['v']['index'] += $this->_sections['v']['step'], $this->_sections['v']['iteration']++):
$this->_sections['v']['rownum'] = $this->_sections['v']['iteration'];
$this->_sections['v']['index_prev'] = $this->_sections['v']['index'] - $this->_sections['v']['step'];
$this->_sections['v']['index_next'] = $this->_sections['v']['index'] + $this->_sections['v']['step'];
$this->_sections['v']['first']      = ($this->_sections['v']['iteration'] == 1);
$this->_sections['v']['last']       = ($this->_sections['v']['iteration'] == $this->_sections['v']['total']);
?>
						<div class="zj" >
							<div class="l50_s_list"><a href="index.php?uid=<?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['vuid']; ?>
" title="<?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['vusername']; ?>
" target="_blank">
							<?php if ($this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['picture_small'] != ''): ?>
								<img src="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['picture_small']; ?>
" width="45" height="45">
							<?php else: ?>
								<img src="<?php echo $this->_tpl_vars['site_url']; ?>
/app/space/templates/images/untitled.bmp" alt="<?php echo $this->_tpl_vars['space_array']['username']; ?>
" width="45" height="45"/>
							<?php endif; ?>
							</a></div>
							<div class="zj2" ><a href="index.php?uid=<?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['vuid']; ?>
" class="sl" title="<?php echo $this->_tpl_vars['visitor_array']['vusername']; ?>
" target="_blank"><?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['vusername']; ?>
</a></div>
							<div class="zj3" style="margin-top: -3px; font-size: 10px; font-family: Arial;"><?php echo $this->_tpl_vars['visitor_array'][$this->_sections['v']['index']]['dateline']; ?>
</div>
						</div>						
					<?php endfor; endif; ?>
				<?php endif; ?>
				<div class="c"></div>
			</div>
</div>

<div id="content">
<!--页头导航-->
<?php if ($this->_tpl_vars['type'] == 'home'): ?>
	<div class="tabs_header">
	<ul class="tabs">
	<li class="myhome <?php if ($_GET['action'] == ''): ?> active <?php endif; ?>"><a href="index.php?uid=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceHome']; ?>
</span></a></li>
	<li class="myblog <?php if ($_GET['action'] == 'blog' || $_GET['action'] == 'blog_view'): ?> active <?php endif; ?>"><a href="index.php?action=blog&uid=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceBlog']; ?>
</span></a></li>
	<li class="mywall <?php if ($_GET['action'] == 'message'): ?> active <?php endif; ?>"><a href="index.php?action=message&uid=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceMessage']; ?>
</span></a></li>
	<li class="mythread <?php if ($_GET['action'] == 'commend' || $_GET['action'] == 'blog_commend_view'): ?> active <?php endif; ?>"><a href="index.php?action=commend&uid=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceCommend']; ?>
<h1></h1></span></a></li>
	<li class="myfriend <?php if ($_GET['action'] == 'friend'): ?> active <?php endif; ?>"><a href="index.php?action=friend&uid=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceFriend']; ?>
</span></a></li>
	<?php if ($this->_tpl_vars['s_login_id'] != '' && $this->_tpl_vars['s_login_id'] != $this->_tpl_vars['space_array']['uid']): ?>
	<li class="myfriend"><a href="index.php?uid=<?php echo $this->_tpl_vars['s_login_id']; ?>
"><span><?php echo $this->_tpl_vars['langMySpace']; ?>
</span></a></li>
	<li style="margin: 2px 0 0 15px; padding: 0 0 0 21px; height: 23px; background: url(templates/images/add_button.gif) no-repeat 0 bottom; line-height: 23px;"><a href="member.php?action=collection&type=space&id=<?php echo $this->_tpl_vars['space_array']['uid']; ?>
" style="padding: 0 6px 0 0; height: 23px; background: url(templates/images/add_button.gif) no-repeat right bottom; color: #FFF; font-size: 12px;"><?php echo $this->_tpl_vars['langCollectionSpace']; ?>
</a></li>
	<?php endif; ?>
	</ul>
	</div>
<?php else: ?>
	<div class="tabs_header1">
	<ul class="tabs">
	<li class="myhome"><a href="index.php?uid=<?php echo $this->_tpl_vars['s_login_id']; ?>
"><span><?php echo $this->_tpl_vars['langSpaceBackHome']; ?>
</span></a></li>
	<li class="myhome <?php if ($_GET['action'] == 'profile'): ?> active <?php endif; ?>"><a href="member.php?action=profile"><span><?php echo $this->_tpl_vars['langSpaceMember']; ?>
</span></a></li>
	<li class="myblog <?php if ($_GET['action'] == 'blog_list' || $_GET['action'] == 'blog_add' || $_GET['action'] == 'blog_edit'): ?> active <?php endif; ?>"><a href="member.php?action=blog_list"><span><?php echo $this->_tpl_vars['langSpaceBlogManage']; ?>
</span></a></li>
	<li class="myhome <?php if ($_GET['action'] == 'category_list' || $_GET['action'] == 'category_add'): ?> active <?php endif; ?>" ><a href="member.php?action=category_list"><span><?php echo $this->_tpl_vars['langCategoryManage']; ?>
</span></a></li>
	<li class="mythread <?php if ($_GET['action'] == 'blog_commend' || $_GET['action'] == 'blog_commend_add' || $_GET['action'] == 'blog_commend_edit'): ?> active <?php endif; ?>"><a href="member.php?action=blog_commend"><span><?php echo $this->_tpl_vars['langSpaceCommendManage']; ?>
</span></a></li>
	<li class="myfriend <?php if ($_GET['action'] == 'friend_list' || $_GET['action'] == 'friend_add' || $_GET['action'] == 'friend_invite'): ?> active <?php endif; ?>"><a href="member.php?action=friend_list"><span><?php echo $this->_tpl_vars['langSpaceFriendManage']; ?>
</span></a></li>
	<li class="myhome <?php if ($_GET['action'] == 'collection_list'): ?> active <?php endif; ?>" ><a href="member.php?action=collection_list"><span><?php echo $this->_tpl_vars['langCollectionManage']; ?>
</span></a></li>
	<li class="myhome <?php if ($_GET['action'] == 'templet'): ?> active <?php endif; ?>"" ><a href="member.php?action=templet"><span><?php echo $this->_tpl_vars['langTempletManage']; ?>
</span></a></li>
	</ul>
	</div>
<?php endif; ?>